package cn.trda.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.trda.pojo.Role;
import cn.trda.service.RoleService;



@Controller
@RequestMapping("role")
public class RoleController {
	@Autowired
	private RoleService asRoleService;
	@RequestMapping({"/","/manage"})
	public String manage(){
		return "role_manage";
	}
	@RequestMapping("list")
	@ResponseBody
	public List<Role> getlist(){
		return asRoleService.selectAll(null);
	}
}
